/**
 * @param liveSales - 带货路由表
 *
 */
export const liveSales = {
  path: "/livesales",
  name: "Livesales",
  component: () => import("@/layout/index.vue"),
  meta: {
    title: "带货",
    hidden: false,
    requiresAuth: true,
  },
  children: [
    {
      path: "/livesales",
      component: () => import("@/views/livesales/index.vue"),
      redirect: "/livesales/livesalelist",
      meta: {
        hidden: true,
      },
      children: [
        {
          path: "livesalelist",
          component: () => import("@/views/livesales/LiveSalelist.vue"),
          name: "livesalelist",
          meta: {
            title: "带货列表",
            KeepAlive: true,
          },
        },
        {
          path: "mysalespromotion",
          component: () => import("@/views/livesales/MysalesPromotion.vue"),
          name: "mysalespromotion",
          meta: {
            title: "我的带货",
            KeepAlive: true,
          },
        },
        {
          path: "salesdetails",
          component: () => import("@/views/livesales/SalesDetails.vue"),
          name: "salesdetails",
          meta: {
            title: "销售明细",
            KeepAlive: true,
          },
        },
        {
          path: "incomedetails",
          component: () => import("@/views/livesales/IncomeDetails.vue"),
          name: "incomedetails",
          meta: {
            title: "收益明细",
            KeepAlive: true,
          },
        },
        {
          path: "merchandisesalesvolume",
          component: () => import("@/views/livesales/MerchandiseSalesvolume.vue"),
          name: "merchandisesalesvolume",
          meta: {
            title: "带货流水",
            KeepAlive: true,
          },
        },
      ],
    },
  ],
};
